Skip to content

✨ feat(validate-news): skip labels set at opening - #40

Merged
gaborbernat merged 1 commit into
mainfrom
news-skip-opening-labels
Nov 2, 2026
Merged

gaborbernat merged 1 commit into
mainfrom
news-skip-opening-labels

Conversation

@gaborbernat

Copy link
Copy Markdown
Member

Opening a pull request with labels, as gh pr create --label does, fires labeled a moment after opened. Callers trigger the news check on both, so it ran twice, and callers whose news.yaml cancels runs in progress showed the cancelled run as a failed 📝 News fragment check while the other passed. 🏷️

validate-news now passes at once for a label added or removed within a minute of the pull request opening. The run for opened already reads the labels from the API when it checks, so a skip news label applied at opening still counts there. Label changes after that first minute run the full check as before, so adding or removing skip news later still updates the required status.

The README now tells callers not to cancel runs in progress, since cancelling is what turned the duplicate into a red check. Callers pick this up by moving their pin to the next release and dropping the concurrency block from news.yaml; the check keeps its 📝 News fragment name, so rulesets need no change.

@gaborbernat gaborbernat added the enhancement New feature or request label Nov 2, 2026
`gh pr create --label` labels a pull request right after opening it, so
callers triggered on `labeled` ran the check twice, and those that cancel
runs in progress showed the cancelled run as a failed check. A label event
within a minute of opening now passes at once: the run for `opened` reads
the labels from the API when it checks, so it already covers that label.
@gaborbernat
gaborbernat force-pushed the news-skip-opening-labels branch from 9e37074 to 39e5fae Compare November 2, 2026 19:04
@gaborbernat
gaborbernat merged commit ee3584d into main Nov 2, 2026
10 checks passed
@gaborbernat
gaborbernat deleted the news-skip-opening-labels branch November 2, 2026 19:09
This was referenced Nov 2, 2026
gaborbernat added a commit to tox-dev/sphinx-autodoc-typehints that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/pre-commit-uv that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/action-pre-commit-uv that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/tox-uv that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to pytest-dev/pytest-print that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/sphinx-argparse-cli that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/python-discovery that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/devpi-process that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/tox-ini-fmt that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to gaborbernat/bump-deps-index that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to gaborbernat/mdformat-hugo that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/mdformat-zola that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/PyVenvManage that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/toml-fmt that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

Runs no longer cancel each other, and the check reads the pull request's
labels from the API instead of the event, so the run for opening sees a
`skip news` label added with it and both runs agree. The
`github-workflows` pin moves to
[6.3.0](tox-dev/github-workflows#40). The check
keeps its name, so the ruleset needs no change.
gaborbernat added a commit to tox-dev/jetbrains-fish that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to pypa/pipx that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/platformdirs that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/filelock that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/pyproject-api that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to pytest-dev/pytest-env that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/pipdeptree that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/tox-gh that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to gaborbernat/pypi-changes that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/xml-fmt that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to pypa/virtualenv that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to quotaline/quotaline that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the shared concurrency group cancelled the first run, which the PR
then listed as a failed `📝 News fragment` check while the other run
passed. 👷

Label events now get their own concurrency group, so they no longer
cancel the run for opening while a new push still cancels a superseded
run, as the repository's workflow lint requires. The check moves to
[github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening. The check keeps its name, so the ruleset needs no change.
gaborbernat added a commit to tox-dev/turbohtml that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

This moves the news check to [github-workflows
6.3.0](tox-dev/github-workflows#40), whose
`validate-news` passes at once for a label set within a minute of
opening since the run for opening already reads the current labels, and
stops cancelling runs in progress. The check keeps its name, so the
ruleset needs no change.
gaborbernat added a commit to tox-dev/peryx that referenced this pull request Nov 2, 2026
Opening a pull request with labels, as `gh pr create --label` does,
fires `labeled` a moment after `opened`. Both started the news check,
and the concurrency group cancelled the first run, which the PR then
listed as a failed `📝 News fragment` check while the other run passed. 👷

Runs no longer cancel each other, and the check reads the pull request's
labels from the API instead of the event, so the run for opening sees a
`skip news` label added with it and both runs agree. The
`github-workflows` pin moves to
[6.3.0](tox-dev/github-workflows#40). The check
keeps its name, so the ruleset needs no change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant